package com.xu.crawler.dao;

import com.xu.crawler.dao.entity.HistoryRecordDO;

import java.io.Serializable;

/**
 * Created by clear on 2018/7/13.
 */
public interface HistoryRecordDao extends Serializable {

    /**
     * 查询最新新闻历史记录
     *
     * @param sourceId
     * @param category
     * @return
     */
    String queryLatestNewsUrl(Integer sourceId, String category);

    void saveHistoryRecord(HistoryRecordDO historyRecordDO);

}
